<template>
  <div id="app">
    <Header />
    <router-view></router-view>
    <!-- 根据路由元信息判断footer的显示和隐藏 -->
    <Footer v-show="$route.meta.isshow" />
  </div>
</template>

<script>
import Header from "./components/Header";
import Footer from "./components/Footer";
export default {
  name: "App",
  mounted() {
    //通知vuex发请求，获取数据存储到仓库中
    //获取三级导航TypeNav所需数据
    this.$store.dispatch("categoryList");
  },
  components: {
    Header,
    Footer,
  },
};
</script>

<style>
</style>
